package com.ssm.reader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ssm.reader.entity.Book;

public interface BookService {
    /*
    *page:查询第几页数据
    * rows:每页显示第几条
    *IPage：MP提供的分页对象
    *
    * */
    public IPage<Book> paging(Long categoryId,String order ,Integer page, Integer rows);

    /*
    * 接口功能：通过图书编号，查询图书对象
    *
    * */
    public Book selectById(Long bookId);

    //更新图书评分及评价数量
    public void updateEvaluation();

    public Book createBook(Book book);

    public Book updateBook(Book book);

    public void deleteBook(Long bookId);


}
